package _1._0._0._127.ormrpc.services.WSWSPurOrderFacade;

public class WSWSPurOrderFacadeSrvProxyProxy implements WSWSPurOrderFacadeSrvProxy {
    private String _endpoint = null;
    private WSWSPurOrderFacadeSrvProxy wSWSPurOrderFacadeSrvProxy = null;

    public WSWSPurOrderFacadeSrvProxyProxy() {
        _initWSWSPurOrderFacadeSrvProxyProxy();
    }

    public WSWSPurOrderFacadeSrvProxyProxy(String endpoint) {
        _endpoint = endpoint;
        _initWSWSPurOrderFacadeSrvProxyProxy();
    }

    private void _initWSWSPurOrderFacadeSrvProxyProxy() {
        try {
            wSWSPurOrderFacadeSrvProxy = (new WSWSPurOrderFacadeSrvProxyServiceLocator()).getWSWSPurOrderFacade();
            if (wSWSPurOrderFacadeSrvProxy != null) {
                if (_endpoint != null)
                    ((javax.xml.rpc.Stub) wSWSPurOrderFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
                else
                    _endpoint = (String) ((javax.xml.rpc.Stub) wSWSPurOrderFacadeSrvProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
            }

        } catch (javax.xml.rpc.ServiceException serviceException) {
        }
    }

    public String getEndpoint() {
        return _endpoint;
    }

    public void setEndpoint(String endpoint) {
        _endpoint = endpoint;
        if (wSWSPurOrderFacadeSrvProxy != null)
            ((javax.xml.rpc.Stub) wSWSPurOrderFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

    }

    public WSWSPurOrderFacadeSrvProxy getWSWSPurOrderFacadeSrvProxy() {
        if (wSWSPurOrderFacadeSrvProxy == null)
            _initWSWSPurOrderFacadeSrvProxyProxy();
        return wSWSPurOrderFacadeSrvProxy;
    }

    public String[] importData(String xmlData) throws java.rmi.RemoteException, wspurorderfacade.client.WSInvokeException {
        if (wSWSPurOrderFacadeSrvProxy == null)
            _initWSWSPurOrderFacadeSrvProxyProxy();
        return wSWSPurOrderFacadeSrvProxy.importData(xmlData);
    }


}